package com.ihr360.payroll.controller.salaryfield;

import com.ihr360.maven.plugin.ModuleCodeStore;
import com.ihr360.maven.plugin.annotation.ModuleDefinition;
import com.ihr360.payroll.model.dto.salary.basecode.SalaryFieldCategory;
import com.ihr360.payroll.service.salaryfield.SalaryFieldCategoryService;
import com.ihr360.rest.service.SimpleRestService;
import com.ihr360.rest.webmvc.AbstractRestSimpleWithLongIdController;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author richey
 */
@RestController
@RequestMapping("/salaryFieldCategories")
@ModuleDefinition(mainModuleCode = ModuleCodeStore.Module.SALARY_CODE_ADMIN, mainModuleName = ModuleCodeStore.Module.SALARY_NAME_ADMIN, hasExtendsAbstractRestController = true,
        subModuleCode = ModuleCodeStore.Module.SalaryAdmin.SALARY_FIELD_CATEGORY_CODE, subModuleName = ModuleCodeStore.Module.SalaryAdmin.SALARY_FIELD_CATEGORY_NAME)
public class SalaryFieldCategoryController extends AbstractRestSimpleWithLongIdController<SalaryFieldCategory>{

    @Autowired
    private SalaryFieldCategoryService salaryFieldCategoryService;

    @Override
    public SimpleRestService<SalaryFieldCategory, Long> getSimpleRestService() {
        return salaryFieldCategoryService;
    }




}
